<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <title>Title</title>
</head>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.js"></script>
<body>


<button type="" class="btn" onclick="getInfo(1)">系统日志</button>
<button type="" class="btn" onclick="getInfo(2)">接口限流</button>

<script>
    function getInfo(id) {
        var url;
        if(id == 1){
            url = "web/log"
        } else {
            url = "web/limit"
        }
        $.ajax({
            url:url,
            success:function (res) {
                alert(res)
            },
            error:function (res) {
                //提示信息
                alert(res.statusText)
            }
        })
    }

</script>
</body>
</html>